﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DomainModel.Entities.Task>" %>
<div class="task-details-body">
    <div class="tdb-name-wrapper">
        <div class="checkbox"><a href="#"><span class="task-checkbox">task-checkbox</span></a></div>
        <div class="tdb-name"><%= Model.Name %></div>        
    </div>


    <div class="tdb-description">
        <span class="tdb-description-ico">desc</span>
        <div class="tdb-discription">
        <% if(!string.IsNullOrEmpty(Model.Description)) {%>
            <%= Model.Description %>&nbsp;
        <% } else{%>
            <span class="other-notes">none</span>         
        <% } %>
        </div>
    </div>



    <div class="tdb-project">
        <span class="tdb-project-ico">proj</span>
        <% if (Model.Project != null){%>
            <div class="tdb-project-name">
                <%= Model.Project.Name%>
            </div>
        <% } else{%>
            <span class="other-notes">indox</span>
        <%} %>
        &nbsp;        
    </div>

    <div class="tdb-date">
        <span class="tdb-date-ico">date</span>
        <% if (Model.DateDue != null){%>
            <%= Model.DateDue %>&nbsp;
        <% } else{%>
            <span class="other-notes">no due date</span>
        <%} %>

    </div>
</div>
<%= Html.HiddenFor(m => m.Id) %>